package cn.jasonone.tio.server.test;

import cn.jasonone.tio.tcp.commons.Command;

/**
 * @author xujie
 * @version 1.0
 * @date 2022/1/20 16:27
 */
public enum CmdType implements Command {
    SYSTEM_MESSAGE(1, 1, 1),
    NOTICE(1, 1, 2);

    private byte type;
    private int group;
    private int code;

    CmdType(int type, int group, int code) {
        this.type = (byte) type;
        this.group = group;
        this.code = code;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public int getGroup() {
        return group;
    }

    @Override
    public byte getType() {
        return type;
    }
}
